home *** CD-ROM | disk | FTP | other *** search
- In a recent project I worked with, we daily stampled all files in the morning.
- That way when we did incremental builds of components we could track on testing
- machines which version was used.
-
- To complete this, we used the Windows NT AT-command on one of the development
- machines to run a BAT-file.
-
- The BAT-file runs SetVersion.EXE twice, once for *.RC files and once for *.VBP files,
- since the project was a mixed VC6 VB6 environment.
-
- Hope you get some ideas of your own out of this!
-
-
-
- C:\>at
- Status ID Day Time Command Line
- -------------------------------------------------------------------------------
- 1 Each M T W Th F 09:00 AM "c:\src\prjroot\setver.bat"
-
-
-
- C:\>type "c:\src\project root\setver.bat"
-
- @echo off
- set PRJ_ROOT=c:\src\project root
- rem
- "%PRJ_ROOT%\setversion" -h "%PRJ_ROOT%\inc\ver.h" "%PRJ_ROOT%\version.ini
- rem
- " "%PRJ_ROOT%\*.rc" > "%PRJ_ROOT%\version.log"
- rem
- "%PRJ_ROOT%\setversion" -h "%PRJ_ROOT%\inc\ver.h" "%PRJ_ROOT%\version.ini
- rem
- " "%PRJ_ROOT%\*.vbp" >> "%PRJ_ROOT%\version.log"
- rem
- set PRJ_ROOT=
-